import request from '@/utils/request'

// 查询单据追踪列表
export function listWarrantyfollow(query) {
  return request({
    url: '/dailyoperations/warrantyfollow/list',
    method: 'get',
    params: query
  })
}

// 查询报修申请详细
export function getClaim(id) {
  return request({
    url: '/dailyoperations/claim/' + id,
    method: 'get'
  })
}

// 查询单据追踪详细
export function getWarrantyfollow(id) {
  return request({
    url: '/dailyoperations/warrantyfollow/' + id,
    method: 'get'
  })
}

// 新增单据追踪
export function addWarrantyfollow(data) {
  return request({
    url: '/dailyoperations/warrantyfollow',
    method: 'post',
    data: data
  })
}

// 修改单据追踪
export function updateWarrantyfollow(data) {
  return request({
    url: '/dailyoperations/warrantyfollow',
    method: 'put',
    data: data
  })
}

// 删除单据追踪
export function delWarrantyfollow(id) {
  return request({
    url: '/dailyoperations/warrantyfollow/' + id,
    method: 'delete'
  })
}
